package com.my.attendance.service;

import com.my.attendance.dao.HistoryDao;
import com.my.attendance.entity.History;

public class HistoryService {
    private HistoryDao historyDao=new HistoryDao();

    public History getHistory(int employee_number) throws Exception {
        History history = historyDao.getHistory(employee_number);
        return history;
    }

    public int updateHistory(String status,int employee_number) throws Exception {
        int i = historyDao.updateHistory(status, employee_number);
        return i;
    }

    public int deleteHistory(int employee_number) throws Exception {
        int i = historyDao.deleteHistory(employee_number);
        return i;
    }
}
